package com.puao.bean.enumerate;

import java.util.HashMap;
import java.util.Map;

public enum E_TYPE {

    E_6("0_1_2_3_5","0_1_2_4_5","0_1_3_4_5","0_2_3_4_5","1_2_3_4_5"),
    E_7("0_1_2_5_6","0_1_3_5_6","0_1_4_5_6","0_2_3_4_6","1_2_3_4_5"),
    E_8("0_1_3_6_7","0_2_3_4_7","0_2_3_5_7","0_3_4_5_7","1_2_4_5_6"),
    E_9("0_1_2_7_8","0_3_4_5_7","0_3_5_6_8","1_2_4_6_7","1_3_4_5_8"),
    E_11("0_2_3_9_10","0_3_6_7_8","1_4_5_6_7","1_4_5_6_8","1_4_5_7_8");

    private String type1;
    private String type2;
    private String type3;
    private String type4;
    private String type5;

    E_TYPE(String type1 ,String type2 ,String type3,String type4,String type5){
        this.type1 = type1;
        this.type2 = type2;
        this.type3 = type3;
        this.type4 = type4;
        this.type5 = type5;
    }

    public String getType1() {
        return type1;
    }

    public String getType2() {
        return type2;
    }

    public String getType3() {
        return type3;
    }

    public String getType4() {
        return type4;
    }

    public String getType5() {
        return type5;
    }

    public static Map<String,String[]> getTypeMap(E_TYPE type){
        Map<String,String[]> map = new HashMap<>();
        map.put("type1",type.type1.split("_"));
        map.put("type2",type.type2.split("_"));
        map.put("type3",type.type3.split("_"));
        map.put("type4",type.type4.split("_"));
        map.put("type5",type.type5.split("_"));
        return  map;
    }
}
